From 47d17952db10116faa30a459e8bf4b771aecd47e Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 17 Jun 2005 13:17:09 +0000 Subject: [PATCH] Fix length argument to memmove so we don't mangle the dest string. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 4ce40cf4f..e22b83d1a 100644 --- a/util.c +++ b/util.c @@ -895,7 +895,7 @@ char * str_utf8_to_ascii( const char * str ) cur += bytes - 1; } else { *cur = (char)value; - memmove(cur+1, cur+bytes, bytes+1); + memmove(cur+1, cur+bytes, strlen(cur+bytes)); } } cur++; -- 2.30.2